<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>LIF041-Infographie: Référence du fichier /home/the-king/LIFO41/lifo41-tp-infographie/Image.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LIF041-Infographie</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_image_8cpp.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier /home/the-king/LIFO41/lifo41-tp-infographie/Image.cpp</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;cstdlib&gt;</code><br/>
<code>#include &lt;cassert&gt;</code><br/>
<code>#include &lt;cstdio&gt;</code><br/>
<code>#include &quot;<a class="el" href="_image_8h_source.html">Image.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de Image.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="_image_8cpp__incl.png" border="0" usemap="#_2home_2the-king_2_l_i_f_o41_2lifo41-tp-infographie_2_image_8cpp" alt=""/></div>
<!-- MAP 0 -->
</div>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#abb66606a1482a97fc8b6b1406915d66a">imInit</a> (<a class="el" href="structs_image.html">Image</a> &amp;im, const int dx, const int dy, const int dc)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Init an black image.  <a href="#abb66606a1482a97fc8b6b1406915d66a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a59fc5c81ae684d0bc9604d51fd8bab0d">imFree</a> (<a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Free memory.  <a href="#a59fc5c81ae684d0bc9604d51fd8bab0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a88d4f73f024fbaba6faca480f99be02e">imCreateTransparency</a> (<a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add transparency to an image: all white pixels (R=255,G=255,B=255) get transparent.  <a href="#a88d4f73f024fbaba6faca480f99be02e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#afe1e8e9172d457511dcb7edaeee9ccdb">imGetDimX</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return Weight of the image  <a href="#afe1e8e9172d457511dcb7edaeee9ccdb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a77b9e9fd96c4f01ff5427b66d2583afe">imGetDimY</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return Height of the image  <a href="#a77b9e9fd96c4f01ff5427b66d2583afe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a307ba5e3ceff8b428f855caf8b4e79ca">imGetDimC</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return number of colors of the image: 1=greyscale image; 3=RGB; 4=RGBA  <a href="#a307ba5e3ceff8b428f855caf8b4e79ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a7e71b294474d6a007cb502a11aae01a3">imGetData</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return pointer on data  <a href="#a7e71b294474d6a007cb502a11aae01a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned char &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a587db3306e9f8d42571984ed10fd712b">getPix</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im, const int x, const int y, const int c)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the color value of a pixel (x,y); c=0 return R; c=1 return G; c=2 return B; c=4 return Alpha  <a href="#a587db3306e9f8d42571984ed10fd712b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned char &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#aa8c969bba0b30d935dd9ef4d16a0935e">getPixConst</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im, const int x, const int y, const int c)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the color value of a pixel (x,y); c=0 return R; c=1 return G; c=2 return B; c=4 return Alpha  <a href="#aa8c969bba0b30d935dd9ef4d16a0935e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#afe9188b950fd511ec9fca79eeda79185">imInitPPM</a> (<a class="el" href="structs_image.html">Image</a> &amp;im, const char filename[])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Init an image from a PPM file.  <a href="#afe9188b950fd511ec9fca79eeda79185"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a24a645da11c0ee7b5871d02e496d7833">imPrintf</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">print size of the image  <a href="#a24a645da11c0ee7b5871d02e496d7833"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8cpp.html#a5b5a3b61b5b59297cce86bb28d7442ec">isCoordValid</a> (const <a class="el" href="structs_image.html">Image</a> &amp;im, const int x, const int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">true if (x,y) is into the image otherwise false  <a href="#a5b5a3b61b5b59297cce86bb28d7442ec"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a587db3306e9f8d42571984ed10fd712b"></a><!-- doxytag: member="Image.cpp::getPix" ref="a587db3306e9f8d42571984ed10fd712b" args="(const Image &amp;im, const int x, const int y, const int c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char&amp; getPix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return the color value of a pixel (x,y); c=0 return R; c=1 return G; c=2 return B; c=4 return Alpha </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>, <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

<p>Référencé par <a class="el" href="_scene_8h.html#a21e5c2610df9ac4011f4c31dcc03fbd0">dessineTerrain()</a>, <a class="el" href="_image_8h.html#a65fb48a34206a76f53403a773e7fc31b">getPixConst()</a>, et <a class="el" href="_scene_8h.html#aca0046921c401f9e20902f6af27a9524">normalTerrain()</a>.</p>

</div>
</div>
<a class="anchor" id="aa8c969bba0b30d935dd9ef4d16a0935e"></a><!-- doxytag: member="Image.cpp::getPixConst" ref="aa8c969bba0b30d935dd9ef4d16a0935e" args="(const Image &amp;im, const int x, const int y, const int c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned char&amp; getPixConst </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return the color value of a pixel (x,y); c=0 return R; c=1 return G; c=2 return B; c=4 return Alpha </p>

<p>Références <a class="el" href="_image_8cpp.html#a587db3306e9f8d42571984ed10fd712b">getPix()</a>.</p>

<p>Référencé par <a class="el" href="_scene_8h.html#aeaea5addb3a2cdd3413c0b1504fea008">sceneInit()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_image_8cpp_aa8c969bba0b30d935dd9ef4d16a0935e_cgraph.png" border="0" usemap="#_image_8cpp_aa8c969bba0b30d935dd9ef4d16a0935e_cgraph" alt=""/></div>
<!-- MAP 1 -->
</div>
</p>

</div>
</div>
<a class="anchor" id="a88d4f73f024fbaba6faca480f99be02e"></a><!-- doxytag: member="Image.cpp::imCreateTransparency" ref="a88d4f73f024fbaba6faca480f99be02e" args="(Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imCreateTransparency </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add transparency to an image: all white pixels (R=255,G=255,B=255) get transparent. </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>, <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>.</p>

</div>
</div>
<a class="anchor" id="a59fc5c81ae684d0bc9604d51fd8bab0d"></a><!-- doxytag: member="Image.cpp::imFree" ref="a59fc5c81ae684d0bc9604d51fd8bab0d" args="(Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Free memory. </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>, <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>.</p>

</div>
</div>
<a class="anchor" id="a7e71b294474d6a007cb502a11aae01a3"></a><!-- doxytag: member="Image.cpp::imGetData" ref="a7e71b294474d6a007cb502a11aae01a3" args="(const Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned char* imGetData </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return pointer on data </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>.</p>

</div>
</div>
<a class="anchor" id="a307ba5e3ceff8b428f855caf8b4e79ca"></a><!-- doxytag: member="Image.cpp::imGetDimC" ref="a307ba5e3ceff8b428f855caf8b4e79ca" args="(const Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imGetDimC </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return number of colors of the image: 1=greyscale image; 3=RGB; 4=RGBA </p>

<p>Références <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>.</p>

</div>
</div>
<a class="anchor" id="afe1e8e9172d457511dcb7edaeee9ccdb"></a><!-- doxytag: member="Image.cpp::imGetDimX" ref="afe1e8e9172d457511dcb7edaeee9ccdb" args="(const Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imGetDimX </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return Weight of the image </p>

<p>Références <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>, et <a class="el" href="_scene_8h.html#aeaea5addb3a2cdd3413c0b1504fea008">sceneInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a77b9e9fd96c4f01ff5427b66d2583afe"></a><!-- doxytag: member="Image.cpp::imGetDimY" ref="a77b9e9fd96c4f01ff5427b66d2583afe" args="(const Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imGetDimY </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return Height of the image </p>

<p>Références <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>.</p>

</div>
</div>
<a class="anchor" id="abb66606a1482a97fc8b6b1406915d66a"></a><!-- doxytag: member="Image.cpp::imInit" ref="abb66606a1482a97fc8b6b1406915d66a" args="(Image &amp;im, const int dx, const int dy, const int dc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>dc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Init an black image. </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>, <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

<p>Référencé par <a class="el" href="_image_8h.html#afe9188b950fd511ec9fca79eeda79185">imInitPPM()</a>.</p>

</div>
</div>
<a class="anchor" id="afe9188b950fd511ec9fca79eeda79185"></a><!-- doxytag: member="Image.cpp::imInitPPM" ref="afe9188b950fd511ec9fca79eeda79185" args="(Image &amp;im, const char filename[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imInitPPM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>filename</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Init an image from a PPM file. </p>

<p>Références <a class="el" href="structs_image.html#aa6f9954c2c570315820119012e7ea1dd">sImage::data</a>, <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>, <a class="el" href="glut_8h.html#a6f255d924f7a6bb2c4be0c8c2f2d9ce3">exit()</a>, et <a class="el" href="_image_8cpp.html#abb66606a1482a97fc8b6b1406915d66a">imInit()</a>.</p>

<p>Référencé par <a class="el" href="opengl_8h.html#a90450a9dd162014f4914d2e2ce773ce2">LoadGLTexture()</a>, et <a class="el" href="_scene_8h.html#aeaea5addb3a2cdd3413c0b1504fea008">sceneInit()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_image_8cpp_afe9188b950fd511ec9fca79eeda79185_cgraph.png" border="0" usemap="#_image_8cpp_afe9188b950fd511ec9fca79eeda79185_cgraph" alt=""/></div>
<!-- MAP 2 -->
</div>
</p>

</div>
</div>
<a class="anchor" id="a24a645da11c0ee7b5871d02e496d7833"></a><!-- doxytag: member="Image.cpp::imPrintf" ref="a24a645da11c0ee7b5871d02e496d7833" args="(const Image &amp;im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imPrintf </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>print size of the image </p>

<p>Références <a class="el" href="structs_image.html#ae55dcd7590bd5f1a78b22081d6a82b19">sImage::dimc</a>, <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

</div>
</div>
<a class="anchor" id="a5b5a3b61b5b59297cce86bb28d7442ec"></a><!-- doxytag: member="Image.cpp::isCoordValid" ref="a5b5a3b61b5b59297cce86bb28d7442ec" args="(const Image &amp;im, const int x, const int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool isCoordValid </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>true if (x,y) is into the image otherwise false </p>

<p>Références <a class="el" href="structs_image.html#adb2d38c3505ca0be7cb014f64a302cbe">sImage::dimx</a>, et <a class="el" href="structs_image.html#a14c6823faa298b6c3d0767bd9ffaa769">sImage::dimy</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_image_8cpp.html">Image.cpp</a>      </li>
      <li class="footer">Généré le Tue Jan 3 2012 09:33:59 pour LIF041-Infographie par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
